<%@ page import="com.bafa.objects.season.Season" %>
<%@ page import="com.bafa.objects.season.Division" %>
<%@ page import="com.bafa.objects.team.Team" %>
<%@ page import="com.bafa.objects.team.TeamSeasonStats" %>
<%@ page import="com.bafa.objects.team.TeamStats" %>
<%@ page import="com.bafa.objects.player.*" %>
<%@ page import="com.bafa.objects.*" %>
<%@ page import="com.bafa.middle.*" %>
<%@ page import="com.bafa.front.presentationbeans.*" %>
<%@ page import="java.util.*" %>
<%@ page import="com.bafa.objects.*" %>
<%@ page import="com.bafa.middle.*" %>
  <% FixturesListBean fixtures = (FixturesListBean)request.getAttribute("FIXTURES");
%>
<% SeasonBean season = (SeasonBean)request.getAttribute("CURRENTSEASON");   %>
<% User user = (User)session.getAttribute("LOGGEDON"); %>
<%SiteBean siteBean = (SiteBean)session.getAttribute("SITEBEAN");%>
<script  src="script/niftycube.js" type="text/javascript" ></script>
	<script>
	NiftyLoad=function(){
	     

Nifty("ul#results h3","top");
Nifty("ul#results div","bottom same-height");



}
</script>
<style type="text/css">
	
	ul#results,ul#results li{margin:0;padding:0;list-style:none}
	ul#results li{float:left;width:450px;margin:0 10px 10px 0}
	ul#results h3{font: bold  Verdana,sans-serif;
	    text-transform:uppercase;margin:0px;padding: 5px 0 3px;text-align:center}
	ul#results p{margin:0;padding:5px 8px 15px}
	ul#results div{background:#FFFFFF}
	li#results div{border:2px solid #D2D2D2}
	
	
	
</style>


    <ul id="results"><li id="results"><h3 class="avlh">Fixtures</h3>
    <div>        <table class="bafatablelarge"  border="0">

<%	for(int j=0;j<fixtures.matches().length;j++){
	MatchBean match = fixtures.matches()[j];
	String rowClass = "r1";
	if(j%2==0) rowClass="r2";
   %>
 <tr class="<%=rowClass%>">
                  <td><b><%=match.dayOfWeek()%> <%=match.day()%> <%=match.month()%> - <%=match.getTime()%></b></td>
                  <td><b><a href="team.bafa?TeamId=<%=match.getTeamA()%>&SeasonId=<%=season.getId()%>"><%=match.getTeamAName()%></a></b> </td>
                  <td> <b><a href="team.bafa?TeamId=<%=match.getTeamB()%>&SeasonId=<%=season.getId()%>"><%=match.getTeamBName()%></a> </b></td>
                  
  </tr>         
  <tr class="<%=rowClass%>">
    <%if(user!=null && user instanceof AdminUser){%>
        <td><a href="displayreschedule.bafa?MatchId=<%=match.getID()%>">Change Date</a></td>
	<td><a href="deletefixture.bafa?matchId=<%=match.getID()%>">Delete</a></td>
	<td></td>
        <%}else{%>
        
    <%}%>
    
    
  </tr>

  
  <%}%>
</table>  </div>
</li>
</ul>